package hutool.file;

import cn.hutool.core.io.IoUtil;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;

/**
 * @author 黄乾坤
 * @create 2022-04-08 17:31
 */
public class TestIoUtils {

    public static void main(String[] args) throws FileNotFoundException {
        File file = new File("C:\\Users\\12749\\Desktop\\11.none");
        IoUtil.copy(new FileInputStream("C:\\Users\\12749\\Pictures\\QQ图片20220402105014.png"),
                new FileOutputStream(file));
    }
}
